package com.yellow.paymentservice.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.IdType;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.math.BigDecimal;
import java.time.LocalDateTime;

@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("payment_transactions")
public class PaymentTransaction {

    @TableId(value = "transaction_id", type = IdType.AUTO)
    private Integer transactionId;

    @TableField("order_id")
    private Integer orderId;

    @TableField("customer_id")
    private Integer customerId;

    @TableField("amount")
    private BigDecimal amount;

    @TableField("transaction_date")
    private LocalDateTime transactionDate;

    @TableField("status")
    private String status;
}
